package com.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BrowRecored {
    private Integer browRecoredId;//主id

    private Integer userId;//用户id

    private User user;//用户

    private Integer bookId;//书籍id

    private Book book;//书籍

    private String browDate;//借出时间

    private Integer bookState;//书籍状态
    private Varies varies;//书籍类型

    public Varies getVaries() {
        return varies;
    }

    public void setVaries(Varies varies) {
        this.varies = varies;
    }

    public Integer getBrowRecoredId() {
        return browRecoredId;
    }

    public void setBrowRecoredId(Integer browRecoredId) {
        this.browRecoredId = browRecoredId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

   /* public String getBrowDate() {
        SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD HH:mm:ss");

        return sdf.format(browDate);
    }
    public void setBrowDate(Date browDate) {
       *//* SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String currentTime = formatter.format(browDate);*//*
        this.browDate = browDate;
    }*/

    public String getBrowDate() {
        return browDate;
    }

    public void setBrowDate(String browDate) {
        this.browDate = browDate;
    }

    public Integer getBookState() {
        return bookState;
    }

    public void setBookState(Integer bookState) {
        this.bookState = bookState;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    @Override
    public String toString() {
        return "BrowRecored{" +
                "browRecoredId=" + browRecoredId +
                ", userId=" + userId +
                ", user=" + user +
                ", bookId=" + bookId +
                ", book=" + book +
                ", browDate='" + browDate + '\'' +
                ", bookState=" + bookState +
                ", varies=" + varies +
                '}';
    }
}